5
תגובות
switch לא עובד
פתח
phpon
,
switch ($find) {
case "a":
echo 'Regular customer. <br/>';
break;
case "b":
echo 'Customer referred by TV advert. <br/>';
break;
case "c":
echo 'Customer referred by phone directory <br/>';
break;
case "d":
echo 'Customer referred by word of mouth.v';
break;
default:
echo 'We do not know how this customer found us. <br/>';
break;
}
case "a":
echo 'Regular customer. <br/>';
break;
case "b":
echo 'Customer referred by TV advert. <br/>';
break;
case "c":
echo 'Customer referred by phone directory <br/>';
break;
case "d":
echo 'Customer referred by word of mouth.v';
break;
default:
echo 'We do not know how this customer found us. <br/>';
break;
}
\הכל נראה תקין..